'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  
  router.get('/news', controller.home.news);

  router.get('/list', controller.ajax.index)

  router.get('/api/user', controller.user.index)

  router.post('/api/login', controller.user.login)
};
